package com.candoo.root.data;

import org.springframework.boot.autoconfigure.AutoConfigurationPackage;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;

/**
 * 
 * @ClassName:  DataConfiguration   
 * @Description:自动装Data限模块 
 * @author: i@mxpio.com
 * @date:   2020年4月28日 上午10:37:22      
 * @Copyright:  https://gitee.com/i_mxpio
 */

@Configuration
@EnableTransactionManagement
@AutoConfigurationPackage
@ComponentScan
public class DataConfiguration {

	@Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
	
}
